#ifndef __USER_QUEUE_H
#define __USER_QUEUE_H


#include "main.h"


#define MAX_SIZE		200

typedef struct{
	u8 queue_data[MAX_SIZE];
	u8 head;
	u8 tail;
}my_queue_t;

void queue_init(my_queue_t* queue);
u8 quque_push(my_queue_t* queue, u8 data);
u8 quque_pop(my_queue_t* queue, u8* data);
u8 Queue_IsEmpty(my_queue_t *q);
u8 Queue_IsFull(my_queue_t *q);


#endif
